import request from '@/utils/requst';
const login = {
  //获取
  users(data) {
    return request({
      url: "/users/login",
      method: "post",
      data: data, //只有在请求数据的时候才用params，前面params是固定的，后面的params是形参
    });
  },
  getUserInfo(){
    return request({
      url:"/users/getUserInfo",
      method:'GET',
    })
  },
  getAuthMenus(){
    return request({
      url:"/menus/getAuthMenus",
     
    })
  }
};

export default login;
